  /**
 * 处理数字保留两位小数
 * @param value 
 * @param decimals 
 */
   export const safeRound = (value:number, decimals = 2) => {
    const factor = Math.pow(10, decimals);
    return Math.trunc(value * factor) / factor;
  }